#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>

double func(double n, int m)
{
    if (m == 1)
    {
        return n;
    }
    else
    {
        return func(pow(n, 1.0 / 2), m - 1) + n;
    }
}

int main()
{
    int m = 0;
    double n = 0.00;
    while (scanf("%lf %d", &n, &m) != EOF)
    {
        double ret = func(n, m);
        printf("%.2f ", ret);
    }
    return 0;
}